print("我的名字是%s，我的学号是%s"%("董家萁","0306201106"))
import re


def check_password(password):
    # 检查密码是否合格
    if not re.match("^[A-Za-z0-9]+$", password):
        return "不合格"

        # 检查密码长度和组成
    length = len(password)
    has_digit = any(char.isdigit() for char in password)
    has_alpha = any(char.isalpha() for char in password)

    if (has_digit and has_alpha) and length > 8:
        return "高级密码"
    elif (has_digit and not has_alpha) or (not has_digit and has_alpha) or length <= 8:
        return "低级密码"
    else:
        return "不合格"  # 理论上不会到达这个分支，因为前面已经判断合格性


if __name__ == "__main__":
    password = input("请输入密码: ")
    result = check_password(password)
    print(f"您的密码是: {result}")